<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreatePersonalPasswordResetsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('personal_password_resets', function (Blueprint $table) {
            $table->engine = 'MyISAM';
            $table->integer('uid')->unsigned()->index()->default(0)->comment('关联用户表uid');
            $table->string('token',100)->index()->default('');
            $table->timestamp('created_at')->nullable()->comment('添加时间');;
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('personal_password_resets');
    }
}
